package interfacedemo;
 
public class UserDaoImpl implements UserDao{
	@Override
	public int insert(User user) {
		System.out.println("添加用户成功");
		return 1;
	}
	@Override
	public int update(User user) {
		System.out.println("更新用户成功");
		return 1;
	}
	@Override
	public int delete(int userId) {
		System.out.println("删除用户成功");
		return 1;
	}
	@Override
	public User selectById(int userId) {
		System.out.println("查询用户失败");
		return null;
	}
	@Override
	public User[] selectAll() {
		System.out.println("查询用户成功");
		User[] users = new User[3];
		users[0] = new User();
		users[1] = new User();
		users[2] = new User();
		return users;
	}
}
